{include file="$usertemplate/header.tpl.html" title=header} 
    	<div class="content">
   			{include file="$usertemplate/left.tpl.html" title=left} 
        	<div class="cont_right">
           		<div class="main_content">
                	<h2>Thông tin liên hệ</h2>
                    <div class="details">
                          {literal} 
                          <script language="javascript">
                            function CheckFormMail()
                            {
                                    with (document.FormName)
                                    {
                                            if (first_name.value=="")
                                            {
                                                    alert("Mời bạn nhâp họ tên!");
                                                    first_name.focus();
                                                    return false;
                                            }
                                        if (email.value=="")
                                            {
                                                    alert("Mời bạn nhập địa chỉ Email!");
                                                    email.focus();
                                                    return false;
                                            }
                                            else
                                            {
                                                    if(email.value.indexOf("@")<0||email.value.indexOf(".")<0)
                                                    {
                                                            alert("Địa chỉ Email không hợp lệ!");
                                                            email.focus();
                                                            return false;
                                                    }
                                            }
                                    if (title.value=="")
                                            {
                                                    alert("Mời bạn nhập chủ đề");
                                                    title.focus();
                                                    return false;
                                            }
                                    
                                    if (message.value=="")
                                            {
                                                    alert("Mời bạn nhập nội dung");
                                                    message.focus();
                                                    return false;
                                            }
                                    if (code.value=="")
                                            {
                                                    alert("Mời bạn nhập mã xác nhận");
                                                    code.focus();
                                                    return false;
                                            }
                                    }
                                    return true;
                            }
                            </script> 
                          {/literal}
                        <form action="" method="post" name="FormName" target="_parent" onSubmit="return CheckFormMail();">
                            <table border="0" cellpadding="0" cellspacing="0" align="center" style="padding-left:50px;">
                              <tbody>
                                <tr>
                                  <td align="center">
                                  <div class="contactType">
                                <div class="contactInfo">
                                <p>&nbsp;</p>
                              <h3 style="font-size: 18px; font-weight: bold; color:#C03; text-transform:uppercase">{if $lang eq 'vn'}{$siteConfigs->getProperty('company')}{else}{$siteConfigs->getProperty('company_en')}{/if}</h3>
                              <p>&nbsp;</p>
                              <div class="inner"> 
                             <div style="width:100%"> 
                             <table style="text-align:left; margin:0 auto" width="80%" cellspacing="0" cellpadding="0" border="0" >
                                <tbody>
                                {if $error}
                                <tr>
                                  <td colspan="2"> 
                                            <p style="color:#C00">{$error}</p>
                                           </td>
                                  
                                </tr>
                               {/if}
                                <tr>
                                  <td width="20%">{$messages.address}</td>
                                  <td style="width:auto; white-space:nowrap">:{if $lang eq 'vn'}{$siteConfigs->getProperty('address')}{else}{$siteConfigs->getProperty('address_eng')}{/if} </td>
                                </tr>
                                 <tr>
                                  <td>{$messages.tel}</td>
                                  <td>: {$siteConfigs->getProperty('tel')}</td>
                                </tr>
                                <tr>
                                  <td>Fax</td>
                                  <td>: {$siteConfigs->getProperty('fax')}</td>
                                </tr>
                                <tr>
                                  <td>Email</td>
                                  <td>: <a href="{$siteConfigs->getProperty('admin_mail')}">{$siteConfigs->getProperty('admin_mail')}</a></td>
                                </tr>
                              </tbody></table>
                              </div>
                              </div>
                        </div>
                      </div>
                                    </td>
                                </tr>
                                {if $error eq ''}
                                <tr>
                                  <td>
                                  <p>&nbsp;</p>
                                  <p align="center">{$messages.contacts1}<br>
                                      </p></td>
                                </tr>
                                <tr>
                                  <td valign="top"><table class="text_3" align="center" border="0" cellpadding="0" cellspacing="2" width="100%">
                                      <tbody>
                                        <tr valign="top">
                                          <td>&nbsp;</td>
                                          <td>&nbsp;</td>
                                          <td><font size="1"> {$messages.contacts2}</font><font color="#CC0000" size="1">(*)</font>  </td>
                                        </tr>
                                        <tr valign="top">
                                          <td width="28%"><div align="right"> <font color="#CC0000">(*)</font> {$messages.fullname}</div></td>
                                          <td width="2%">&nbsp;</td>
                                          <td width="70%"><input name="first_name" class="box_input" size="45" value="{$full_name}"></td>
                                        </tr>
                                       
                                      
                                        <tr valign="top">
                                          <td><div align="right">{$messages.address}  </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="address" class="box_input" size="45" value="{$address}"></td>
                                        </tr>
                                        <tr valign="top">
                                          <td><div align="right">{$messages.tel} </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="tel" class="box_input" size="45" value="{$tel}"></td>
                                        </tr>
                                        
                                        <tr valign="top">
                                          <td><div align="right"> <font color="#CC0000">(*)</font> Email </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="email" class="box_input" size="45" value="{$email}"></td>
                                        </tr>
                                        <tr valign="top">
                                          <td><div align="right"><font color="#CC0000">(*)</font> {$messages.title} </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="title" class="box_input" id="title" size="45" value="{$title}"></td>
                                        </tr>
                
                                        <tr valign="top">
                                          <td><div align="right"><font color="#CC0000">(*)</font> {$messages.content}</div></td>
                                          <td>&nbsp;</td>
                                          <td><textarea name="message" cols="50" rows="8" wrap="VIRTUAL" class="box_area">{$message}</textarea></td>
                                        </tr>
                                     <tr valign="top">
                                     <td><div align="right"><font color="#CC0000">(*)</font> {$messages.security}</div></td>
                                      <td>&nbsp;</td>
                                     <td style="vertical-align:middle">
                                     <input type="text" value="" name="code"  size="10" class="box_input"  id="code" style="float:left; margin-right:15px"/> &nbsp;&nbsp;
                                     <img src="{$ROOTPATH}/authimg.php" alt="Authenticate image" height="100%" align="left"/>
                            {if $listerror[3]}
                                                        <span class="msg">{$listerror[3]}</span>
                                        {/if}	
                                
                                </td>
                            </tr>
                            
                                        <tr valign="top">
                                          <td height="65">&nbsp;</td>
                                          <td>&nbsp;</td>
                                          <td><input name="B1" class="submitbutton" value="  {$messages.send}  " type="submit">
                                            <input name="op" value="contactform" type="hidden">
                                            <input name="lang" value="{$lang}" type="hidden">
                                            <input name="slug" value="{$slug}" type="hidden">
                                            &nbsp;
                                            <input name="B2" class="submitbutton" value="  {$messages.reset}  " type="reset"></td>
                                        </tr>
                                      </tbody>
                                    </table></td>
                                </tr>
                                {/if}
    
                              </tbody>
                            </table>
                             <p class="clear">&nbsp; </p>
                                      <p style="font-size:16px; color:#F00; font-weight:bold"> Bản đồ đường đi</p>
                                     <hr color="#009966" size="1">
                                  		<p>&nbsp;</p>
                                       <p align="center"><a href="http://www.vietbando.com/maps/#fp=10.7366337,106.691732|10.7366337,106.691732;1;1&t=2&st=0&sk=Đường+số+3%2C+KDC+Trung+Sơn%2C+Bình+Hưng%2C+Bình+Chánh&l=16&kv=10.7358698,106.687867" target="_blank"><img alt="map" src="{$ROOTPATH}/templates/{$usertemplate}/images/maps.jpg" width="710" border=0 alt="" /></a></p> <p>&nbsp;</p>
                          </form>
                    </div>
                </div>
  			 </div>
   		</div>
{include file="$usertemplate/footer.tpl.html" title=footer} 